/**
 * Created by major on 2017/11/7.
 */
var checkNumberNullable = (rule, value, callback) => {
  console.log(value)
  setTimeout(() => {
    if (!Number.isInteger(value)) {
      callback(new Error('请输入正整数值'));
    } else {
      if (value < 0) {
        callback(new Error('必须为正整数哦 ！'));
      } else {
        callback();
      }
    }
  }, 1000);
}

export default {
  checkNumberNullable
}
